From: kfraser@localhost.localdomain Date: Tue, 17 Oct 2006 14:53:42 +0000 (+0100) Subject: Don't use -Wunused-value. It's too aggressive with GCC4. X-Git-Tag: archive/raspbian/4.8.0-1+rpi1~1^2~15589^2~89 X-Git-Url: https://dgit.raspbian.org/%22http:/www.example.com/cgi/%22https:/%22bookmarks://%22/%22http:/www.example.com/cgi/%22https:/%22bookmarks:/%22?a=commitdiff_plain;h=b11b29890de673a39a5961c63edad3e674e99dab;p=xen.git Don't use -Wunused-value. It's too aggressive with GCC4. Signed-off-by: Keir Fraser --- diff --git a/Config.mk b/Config.mk index 74bd8ec80c..92c829dede 100644 --- a/Config.mk +++ b/Config.mk @@ -52,6 +52,10 @@ test-gcc-flag = $(shell $(1) -v --help 2>&1 | grep -q " $(2) " && echo $(2)) CFLAGS += -Wall -Wstrict-prototypes +# -Wunused-value makes GCC 4.x too aggressive for my taste: ignoring the +# result of any casted expression causes a warning. +CFLAGS += -Wno-unused-value + HOSTCFLAGS += $(call test-gcc-flag,$(HOSTCC),-Wdeclaration-after-statement) CFLAGS += $(call test-gcc-flag,$(CC),-Wdeclaration-after-statement)